﻿using System;

namespace Mg.Logging
{
    /// <summary>
    /// 定义创建日志工厂接口
    /// </summary>
    public interface ILoggerFactory
    {
        /// <summary>
        /// 根据日志名创建日志对象
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        ILogger Create(string name);
        /// <summary>
        /// 根据类型创建日志对象
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        ILogger Create(Type type);
    }
}
